import { EventTarget, game } from 'cc';

// 继承子cocos系统,创建一个全局事件管理器
export class EventMgr extends EventTarget {
    private static _instance: EventMgr = null;
    public static getInstance() {
        if (EventMgr._instance == null) {
            EventMgr._instance = new EventMgr();
        }
        return EventMgr._instance;
    }
    fn(){
       game.on
    }
}
